package com.example.mydesignmodule.filter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author tgw
 * @date 2021/1/26
 */
public class AddressFilter implements IFilterBase{

    @Override
    public List<FilterBean> getFilterList(List<FilterBean> filterBeanList) {
        List<FilterBean> mfilters =   new ArrayList<>();
        for (FilterBean filterBean:filterBeanList){
            if (filterBean.getAddress().equalsIgnoreCase("长沙")){
                mfilters.add(filterBean);
            }
        }
        return mfilters;
    }
}
